package co.yixiang.modules.monitoring.service;

import co.yixiang.common.service.BaseService;
import co.yixiang.modules.adopt.entity.vo.YxAdoptCategoryVo;
import co.yixiang.modules.monitoring.entity.domain.YxMonitoringCategory;
import co.yixiang.modules.monitoring.entity.dto.YxMonitoringCategoryDto;
import co.yixiang.modules.monitoring.entity.query.YxMonitoringCategoryQueryCriteria;
import co.yixiang.modules.monitoring.entity.query.YxMonitoringQueryCriteria;
import co.yixiang.modules.monitoring.entity.vo.YxMonitoringCategoryVo;
import co.yixiang.modules.mp.entity.domain.YxArticle;
import co.yixiang.modules.mp.entity.domain.YxArticleCategory;
import co.yixiang.modules.mp.entity.dto.YxArticleCategoryDto;
import co.yixiang.modules.mp.entity.dto.YxArticleQueryCriteria;
import co.yixiang.modules.mp.entity.vo.YxArticleCategoryVo;
import io.swagger.models.auth.In;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface YxMonitoringCategoryService extends BaseService<YxMonitoringCategory> {


    /**
     * 查询数据分页
     * @return Map<String, Object>
     */
    List<YxMonitoringCategoryVo> queryAllByVo();



    //================================= 后台 ===================================================

    /**
     * 查询数据分页
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String, Object>
     */
    Map<String, Object> queryAll(YxMonitoringCategoryQueryCriteria criteria, Pageable pageable);

    /**
     * 查询所有数据不分页
     * @param criteria 条件参数
     * @return List<YxMonitoringCategory>
     */
    List<YxMonitoringCategory> queryAll(YxMonitoringCategoryQueryCriteria criteria);


    /**
     * 构建菜单树
     * @param monitoringCategoryDtoList 原始数据
     * @return /
     */
    Map<String, Object> buildTree(List<YxMonitoringCategoryDto> monitoringCategoryDtoList);
    /**
     * 构建菜单树
     * @param monitoringCategoryDtoList
     * @return List<YxMonitoringCategoryDto>
     */
    List<YxMonitoringCategoryDto> buildYxMonitoringCategorys(List<YxMonitoringCategoryDto> monitoringCategoryDtoList);

    /**
     * 获取菜单树
     * @param monitoringCategoryList
     * @return Object
     */
    Object getYxMonitoringCategoryTree(List<YxMonitoringCategory> monitoringCategoryList);
    /**
     * 根据pid查询
     * @param pid /
     * @return List<YxMonitoringCategory>
     */
    List<YxMonitoringCategory> findByPid(Integer pid);
}
